package com.gufe.mapper.user.mp;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gufe.entity.User;
import com.gufe.entity.wxUsers;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface UserMapper extends BaseMapper<wxUsers> {

    @Select("select * from users where open_id = #{openid}")
    User getByOpenId(String openid);

    int insertUser(User user);
}
